
//轮播图
$(function () {
    var count = 0;
    $(".arrow-right").click(function () {
        count++;
        if(count == $(".slider li").length){
            count = 0;
        }
        console.log(count);
        $("#banner_center li").eq(count).fadeIn().siblings("li").fadeOut();
    });
    $(".arrow-left").click(function () {
        count--;
        if(count == -1){
            count = $(".slider li").length - 1;
        }
        console.log(count);
        $("#banner_center li").eq(count).fadeIn().siblings("li").fadeOut();
    })

});